// 所有的接口方法的列表
import Ajax from './axios'

export const reqhome =()=>{
    return Ajax('/home')
}

export const reqClassifyListData =(classify='猜你喜欢',page=1)=>{
    return Ajax(`/classify/classifylistdata/?classify=${classify}&page=${page}`)
}

export const reqClassifyList=()=>{
    return Ajax('/classify/classifylist')
}

export const reqClassify=()=>{
    return Ajax('/classify')
}

export const reqSearchResult=(key)=>{
    return Ajax(`/search/searchresult/${key}`)
}

export const reqSearch=()=>{
    return Ajax(`/search`)
}

export const reqDetail=(id)=>{
    return Ajax(`detail/${id}`)
}